{include file="common/head"}
<head>
<title>服务场所新增</title>
</head>
<body style="">
    <div class="container p-3 my-3 " style="max-width: 600px;"  >
    <h2>服务场所新增</h2>
    <form method="post" enctype="multipart/form-data" action="/index.php/address/edit">

      <input type="hidden" name="id" value="{$data.id}" />
      <div class="mb-3">
        <label for="title" class="form-label">名称:</label>
        <input type="text" class="form-control" id="title" name="title" value="{$data.title}" placeholder="title" />
      </div>

      <div class="mb-3 mt-3">
        <lable for="address" class="form-label">详细地址:</label>
        <input type="text" class="form-control" id="address" name="address" value="{$data.address}" placeholder="address" />
      </div>

      <div class="mb-3 mt-3">
        <lable for="contact" class="form-label">联络人/收货人:</label>
        <input type="text" class="form-control" id="contact" name="contact" value="{$data.contact}" placeholder="contact" />
      </div>

      <div class="mb-3">
        <label for="mobile" class="form-label">手机号:</label>
        <input type="text" class="form-control" id="mobile" name="mobile" value="{$data.mobile}" placeholder="mobile" />
      </div>

      <div class="mb-3">
        <img src="{$data.imgs}" style="width: 200px;"/><br />
        <label for="file" class="form-label">上传图片(Image):</label>
        <input type="file"  name="file" /> <br> 
      </div>

      <div class="mb-3">
        <label for="status" class="form-label">是否启用(Using):</label>
          <input type="radio" class="form-check-input" id="radio1" name="status" value="1" checked /> 
          <label class="form-check-label" for="radio1">启用(Using)</label>
          <input type="radio" class="form-check-input" id="radio2" name="status" value="2" />
          <label class="form-check-label" for="radio2">停用(Stoped)</label>
       </div>
      <button  type="button" class="btn btn-primary" onclick="doSave()">保存(Save)</button>

    </form>
    </div>

<script type="text/javascript">
  function doSave(){
    $('form').submit();
  }
</script>


</body>
</html>
